package com.kzc.service;

import com.kzc.base.model.Result;
import com.kzc.entity.Member;

import java.util.List;

/**
 * Author：柯尊诚
 * Created by anyleKe on 2016/1/30.
 */
public interface MemberService {

    public Result register(Member member, String code);

    Member login(String phone, String password);

    int bindEcard(String e_card, String qtoken);

    int bindDormitoryNo(String dormitory_no, String qtoken);

    //绑定教务信息
    int bindStudentInfo(String student_no, String student_pwd, String qtoken);

    int updateGender(String gender, String qtoken);

    //修改昵称
    int updateNick(String nickname, String qtoken);

    //修改手机
    int updatePhone(String phone, String device, String qtoken);

    //修改头像名
    int updateAvatar(String avatar, String qtoken);

    //修改密码
    int updatePassword(String password, String qtoken);

    //重置密码
    Result resetPassword(Member member, String code);

    //获取个人信息
    Member queryInfo(String qtoken);

    //获取个人信息
    Member queryByPhone(String phone);

    //修改学生姓名
    Result updateStudentName(String studentName, String qtoken);

    //修改班级
    Result updateMajor(String major, String qtoken);
}
